<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('货物质检')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-quality-check">
        <input type="hidden" name="id" th:value="${chainPurchase.id}">

        <!-- 质检结果选择 -->
        <div class="form-group">
            <label class="col-sm-3 control-label">质检结果：</label>
            <div class="col-sm-8">
                <select name="qualityStatus" class="form-control" required>
                    <option value="1">合格</option>
                    <option value="0">不合格</option>
                </select>
            </div>
        </div>

        <!-- 质检备注 -->
        <div class="form-group">
            <label class="col-sm-3 control-label">质检备注：</label>
            <div class="col-sm-8">
                <textarea name="qualityRemark" class="form-control" rows="3"></textarea>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(ctx + "chain/purchase/qualityCheck", $('#form-quality-check').serialize());
        }
    }
</script>
</body>
</html>
